#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
	int n, sum = 0;
	unsigned long long k;
	cin >> n >> k;
	if (n == 1)
	{
		cout << 0 << endl;
		return 0;
	}
	vector<unsigned long long> v(n, 0);

	for (int i = 0; i<n; i++)
	{
		cin >> v[i];
	}
	for (int i = 0; i<v.size() - 1; i++)
	{
		for (int j = i + 1; j<v.size(); j++)
		{
			unsigned long long t = v[i] * v[j];
			if (t >= k)
				sum += 2;
		}
	}
	cout << sum << endl;
}